{% extends 'content/base_content.html' %}

{% load content_filters %}

{% block content %}
    <div class="content-main">
        {% include 'includes/groups/rule.html' %}
        {% include 'includes/forms/add/rule.html' %}
        <div class="heading">
            <h3>Последние добавленные Правила</h3>
        </div>
        <div class="list-of-rules">
            {% for rule in rules %}
                {% include 'includes/detail/rule.html' %}
            {% endfor %}
        </div>
    </div>

<style>
    .list-of-rulse .content {
        margin-left: 10em;
    }

    .list-of-rules p {
        margin-bottom: 2em;
        margin-left: 1em;
    }

    .list-of-rules h4 a {
        color: white;
    }

</style>
{% endblock content %}
